//
//  UserCenter.swift
//  CustomSwiftProject
//
//  Created by 岚海网络 on 2019/4/8.
//  Copyright © 2019 ljm. All rights reserved.
//

import UIKit

class UserCenter: NSObject {
    
    var isLogin : Bool!
    
    static var shareInstance : UserCenter{
        struct MyStance {
            static var instance : UserCenter = UserCenter()
        }
        return MyStance.instance
    }

    func setLogin(login:Bool) {
        self.isLogin = login
    }
    
    func hasLogin() -> Bool {
        return self.isLogin == nil ? false : self.isLogin
    }
    
}
